<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'inventoryact-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'period'); ?>
		<?php echo $form->textField($model,'period',array('size'=>6,'maxlength'=>6)); ?>
		<?php echo $form->error($model,'period'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'partno'); ?>
		<?php echo $form->textField($model,'partno',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'partno'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'warehouse'); ?>
		<?php echo $form->textField($model,'warehouse',array('size'=>4,'maxlength'=>4)); ?>
		<?php echo $form->error($model,'warehouse'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'date'); ?>
		<?php echo $form->textField($model,'date'); ?>
		<?php echo $form->error($model,'date'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'time'); ?>
		<?php echo $form->textField($model,'time',array('size'=>8,'maxlength'=>8)); ?>
		<?php echo $form->error($model,'time'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'count'); ?>
		<?php echo $form->textField($model,'count',array('size'=>3,'maxlength'=>3)); ?>
		<?php echo $form->error($model,'count'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'serial'); ?>
		<?php echo $form->textField($model,'serial',array('size'=>36,'maxlength'=>36)); ?>
		<?php echo $form->error($model,'serial'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'lot'); ?>
		<?php echo $form->textField($model,'lot',array('size'=>20,'maxlength'=>20)); ?>
		<?php echo $form->error($model,'lot'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'type'); ?>
		<?php echo $form->textField($model,'type',array('size'=>1,'maxlength'=>1)); ?>
		<?php echo $form->error($model,'type'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'description'); ?>
		<?php echo $form->textField($model,'description',array('size'=>20,'maxlength'=>20)); ?>
		<?php echo $form->error($model,'description'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'qty'); ?>
		<?php echo $form->textField($model,'qty'); ?>
		<?php echo $form->error($model,'qty'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'qtyout'); ?>
		<?php echo $form->textField($model,'qtyout'); ?>
		<?php echo $form->error($model,'qtyout'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'vendorno'); ?>
		<?php echo $form->textField($model,'vendorno',array('size'=>4,'maxlength'=>4)); ?>
		<?php echo $form->error($model,'vendorno'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'cost'); ?>
		<?php echo $form->textField($model,'cost'); ?>
		<?php echo $form->error($model,'cost'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'debit'); ?>
		<?php echo $form->textField($model,'debit',array('size'=>10,'maxlength'=>10)); ?>
		<?php echo $form->error($model,'debit'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'credit'); ?>
		<?php echo $form->textField($model,'credit',array('size'=>10,'maxlength'=>10)); ?>
		<?php echo $form->error($model,'credit'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'ponum'); ?>
		<?php echo $form->textField($model,'ponum',array('size'=>20,'maxlength'=>20)); ?>
		<?php echo $form->error($model,'ponum'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'finperiod'); ?>
		<?php echo $form->textField($model,'finperiod',array('size'=>6,'maxlength'=>6)); ?>
		<?php echo $form->error($model,'finperiod'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'source'); ?>
		<?php echo $form->textField($model,'source',array('size'=>1,'maxlength'=>1)); ?>
		<?php echo $form->error($model,'source'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'key'); ?>
		<?php echo $form->textField($model,'key',array('size'=>15,'maxlength'=>15)); ?>
		<?php echo $form->error($model,'key'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'rdate'); ?>
		<?php echo $form->textField($model,'rdate'); ?>
		<?php echo $form->error($model,'rdate'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'rtime'); ?>
		<?php echo $form->textField($model,'rtime',array('size'=>8,'maxlength'=>8)); ?>
		<?php echo $form->error($model,'rtime'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'rcount'); ?>
		<?php echo $form->textField($model,'rcount',array('size'=>3,'maxlength'=>3)); ?>
		<?php echo $form->error($model,'rcount'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'recby'); ?>
		<?php echo $form->textField($model,'recby',array('size'=>4,'maxlength'=>4)); ?>
		<?php echo $form->error($model,'recby'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'reason'); ?>
		<?php echo $form->textField($model,'reason',array('size'=>20,'maxlength'=>20)); ?>
		<?php echo $form->error($model,'reason'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'job'); ?>
		<?php echo $form->textField($model,'job',array('size'=>60,'maxlength'=>150)); ?>
		<?php echo $form->error($model,'job'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'terms'); ?>
		<?php echo $form->textField($model,'terms',array('size'=>31,'maxlength'=>31)); ?>
		<?php echo $form->error($model,'terms'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'partdesc'); ?>
		<?php echo $form->textArea($model,'partdesc',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'partdesc'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->